package kibua.fun.car;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JLabel;

public class Autovisualisierung extends JLabel {
	
	Auto auto;
	
	public Autovisualisierung(Auto auto){
		this.auto=auto;
	}
	
	public void paintComponent(Graphics g){
		g.setColor(Color.WHITE);
		g.fillRect(-5000, -5000, 10000, 10000);
		auto.zeichneDich(g);
		//System.out.println("painting");
	}

}
